Skip to content

Conversation

Middledot
Copy link
Member

Summary

Renamed some functions, moved cmd stuff to ./commands.py

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

As well as default naming for Option names
@Middledot Middledot merged commit 472b548 into Pycord-Development:slash Aug 29, 2021
return cls.channel
if isinstance(datatype, Role):
return cls.role
if isinstance(datatype, None): # FIXME uhm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could do something like Union[Member, Role] here since mentionable encompasses both 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I thought of something like (Role, Member, GuildChannel) but there's the previous checks that would take it, so they'll just have to use SlashCommandOptionType.mentionable manually ig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants